package demo3;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;

public class Test2 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String[] str = in.nextLine().split(" ");

        for(int i = 0; i < str.length; i++) {
            String s = String.valueOf(str[i].charAt(0)).toUpperCase();
            System.out.print(s);
        }
    }

    public static void main3(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(reader.readLine());
        String[] str = reader.readLine().split(" ");
        String s1 = str[0], s2 = str[1];
        int prev1 = -1, prev2 = -1, ret = 0x3f3f3f3f;
        for(int i = 0; i < n; i++)
        {
            String s = reader.readLine();
            if(s.equals(s1)) // 去前⾯找最近的 s2
            {
                if(prev2 != -1)
                {
                    ret = Math.min(ret, i - prev2);
                }
                prev1 = i;
            }
            else if(s.equals(s2)) // 去前⾯找最近的 s1
            {
                if(prev1 != -1)
                {
                    ret = Math.min(ret, i - prev1);
                }
                prev2 = i;
            }
        }
        System.out.println(ret == 0x3f3f3f3f ? -1 : ret);

    }

    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] cost = new int[n];
        for(int i = 0; i < n; i++) {
            cost[i] = in.nextInt();
        }

        // 55 89 84 47 76 71 75 63 18 9
        // int c = 55 + 89 + 84 + 47 + 76 + 71 + 75 + 63 + 18 + 9;
        int c = 89 + 47 + 71 + 63 + 9;
        System.out.println(c);

        int count = 0;
        int a = 0;
        while(a < n-2) {
            count += cost[a];
            if(cost[a+1] < cost[a+2]-1) {
                a++;
            }else {
                a += 2;
            }
            if (a == n-1) {
                count += cost[a];
            }
        }
        System.out.println(count);
    }

    public static void main1(String[] args) {
        ArrayList<Integer> arr1 = new ArrayList<>();
        arr1.add(1);
        arr1.add(2);
        arr1.add(3);
        for (int x : arr1) {
            System.out.print(x);
        }
        System.out.println();
        int[] arr2 = {1,2,3,4,5};
        for (int x : arr2) {
            System.out.print(x);
        }
    }
}
